package 类和对象课堂练习.封装;

public class Zuoye032912 extends Zuoye03291{
    int zuowei;
    public Zuoye032912(String name, int zhongliang, int gaodu,int zuowei) {
        super(name, zhongliang, gaodu);
        this.zuowei=zuowei;
    }
    public void print(){
        System.out.println(name+"是一架客机");
        System.out.println("可以载客"+zuowei+"人");
        super.print();
    }
}
